package org.codeart.broker.example01;

/**
 * 抽象同事类
 */
public abstract class Colleague {

    private final Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    public Mediator getMediator() {
        return mediator;
    }
    
    public abstract void exec(String key);
}
